package com.ngc.mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ngc.mall.domain.ThemeDomain;
import com.ngc.mall.vo.ThemeVO;

import java.util.List;

/**
 *
 *
 * @author: chenxiaolin
 * @date 2023/7/13 15:25
**/
public interface IThemeService extends IService<ThemeDomain> {

    Long createTheme(ThemeDomain themeDomain);

    Boolean updateThemeById(Long id,ThemeDomain themeDomain);

    Boolean updateStatusById(Long id,boolean isEnabled);

    ThemeVO getDetailById(Long id);

    void insertBatchSpuTheme(Long spuId, List<Long> themeIdList);

    List<Long> findIdBySpus(Long spuId);

    Boolean deleteSpuById(Long id);
}
